<?php

function get_formatted_postcomments( $projectid )
// Return the PP-ers' comments for a certain project
// They will be HTML-encoded and with line breaks
// converted to <br/> .
{
    global $dpdb;
    $comment = $dpdb->SqlOneValue("
      SELECT postcomments 
      FROM projects 
      WHERE projectid='$projectid'");

    return h(preg_replace("/\n/", "<br />", $comment));
}

?>
